// 模拟数据
const lostItems = [
    {
        id: 1,
        name: "蓝色笔记本电脑",
        description: "14寸蓝色笔记本电脑，外壳有轻微划痕，屏幕右下角有一个小贴纸",
        location: "图书馆三楼自习室A区305座位",
        contact: "张三 138****5678",
        date: "2025-06-10",
        image: "./picture/computer-image.png",
        type: "lost",
        owner: "张三"
    },
    {
        id: 2,
        name: "黑色钱包",
        description: "皮质黑色钱包，内有身份证、校园卡和几张银行卡，还有200元现金",
        location: "食堂二楼窗口附近",
        contact: "李四 139****6789",
        date: "2025-06-09",
        image: "./picture/wallet-image.png",
        type: "lost",
        owner: "李四"
    },
    {
        id: 3,
        name: "小米蓝牙耳机",
        description: "白色小米蓝牙耳机，充电盒有轻微磨损，耳机型号是Air2S",
        location: "教学楼B栋201教室",
        contact: "王五 137****4567",
        date: "2025-06-08",
        image: "./picture/Headphones-image.png",
        type: "lost",
        owner: "王五"
    },
    {
        id: 7,
        name: "红色保温杯",
        description: "红色不锈钢保温杯，杯身上有卡通图案",
        location: "教学楼A栋101教室",
        contact: "赵六 136****3456",
        date: "2025-06-07",
        image: "./picture/thermos cup-image.png",
        type: "lost",
        owner: "赵六"
    },
    {
        id: 8,
        name: "机械键盘",
        description: "黑色机械键盘，青轴，ESC键有个性键帽",
        location: "图书馆一楼咖啡厅",
        contact: "钱七 135****2345",
        date: "2025-06-06",
        image: "./picture/keyboard-image.png",
        type: "lost",
        owner: "钱七"
    }
];

const foundItems = [
    {
        id: 4,
        name: "校园卡",
        description: "姓名：赵六，学号：20210006，计算机学院",
        location: "操场入口处",
        contact: "赵六 136****3456",
        date: "2025-06-12",
        image: "./picture/card-image.png",
        type: "found",
        owner: "赵六"
    },
    {
        id: 5,
        name: "红色雨伞",
        description: "自动折叠红色雨伞，伞柄处有一个小熊挂饰",
        location: "体育馆门口",
        contact: "钱七 135****2345",
        date: "2025-06-11",
        image: "./picture/Umbrella-image.png",
        type: "found",
        owner: "钱七"
    },
    {
        id: 6,
        name: "华为手机",
        description: "华为Mate 50，黑色，手机壳上有一个漫威钢铁侠的图案",
        location: "图书馆一楼借阅处",
        contact: "孙八 134****1234",
        date: "2025-06-10",
        image: "./picture/telephone-image.png",
        type: "found",
        owner: "孙八"
    },
    {
        id: 9,
        name: "图书馆借阅证",
        description: "绿色封面，内有借书记录",
        location: "第二食堂餐桌",
        contact: "周九 133****0123",
        date: "2025-06-05",
        image: "./picture/LibraryCard-image.png",
        type: "found",
        owner: "周九"
    },
    {
        id: 10,
        name: "运动手表",
        description: "黑色运动手表，支持心率监测",
        location: "操场跑道",
        contact: "吴十 132****9012",
        date: "2025-06-04",
        image: "./picture/Watch-image.png",
        type: "found",
        owner: "吴十"
    }
];

// 用户发布的物品列表，与公共列表同步更新
const userPosts = [
    {
        id: 1,
        name: "蓝色笔记本电脑",
        description: "14寸蓝色笔记本电脑，外壳有轻微划痕，屏幕右下角有一个小贴纸",
        location: "图书馆三楼自习室A区305座位",
        contact: "张三 138****5678",
        date: "2025-06-10",
        image: "./picture/computer-image.png",
        type: "lost",
        status: "active"
    },
    {
        id: 5,
        name: "红色雨伞",
        description: "自动折叠红色雨伞，伞柄处有一个小熊挂饰",
        location: "体育馆门口",
        contact: "钱七 135****2345",
        date: "2025-06-11",
        image: "./picture/Umbrella-image.png",
        type: "found",
        status: "active"
    },
    {
        id: 2,
        name: "黑色钱包",
        description: "皮质黑色钱包，内有身份证、校园卡和几张银行卡，还有200元现金",
        location: "食堂二楼窗口附近",
        contact: "李四 139****6789",
        date: "2025-06-09",
        image: "./picture/wallet-image.png",
        type: "lost",
        status: "recovered"
    }
];

const notifications = [
    {
        id: 1,
        content: "有人对您发布的蓝色笔记本电脑感兴趣，请查看",
        date: "2025-06-13 10:23",
        type: "interest",
        read: false
    },
    {
        id: 2,
        content: "您发布的红色雨伞已被认领，感谢您的帮助",
        date: "2025-06-12 15:47",
        type: "success",
        read: false
    },
    {
        id: 3,
        content: "管理员已审核通过您的账号，现在您可以发布更多信息了",
        date: "2025-06-10 09:15",
        type: "admin",
        read: false
    },
    {
        id: 4,
        content: "系统更新：新增了物品分类功能，欢迎体验",
        date: "2025-06-08 17:30",
        type: "system",
        read: true
    }
];

// 统计数据
const stats = {
    currentLost: lostItems.length,
    currentFound: foundItems.length,
    recovered: 5,
    recoveryRate: "45%"
};

// 月度统计数据
const monthlyStats = [
    { month: "2025-06", lost: 15, found: 12, recovered: 7, rate: "33%" },
    { month: "2025-05", lost: 18, found: 10, recovered: 6, rate: "28%" },
    { month: "2025-04", lost: 22, found: 15, recovered: 10, rate: "31%" },
    { month: "2025-03", lost: 17, found: 11, recovered: 5, rate: "22%" },
    { month: "2025-02", lost: 14, found: 9, recovered: 4, rate: "19%" }
];